<script type="text/javascript">
    function getHTML(v,type)
    {	
        var url = '../ajax_back_end.php';
        var sj = new Date();
        if(type==1)
            var pars = 'shuiji=' + sj+'&prov_id='+v;
        if(type==2)
            var pars = 'shuiji=' + sj+'&catid='+v;
        var myAjax = new Ajax.Request(
        url,
        {method: 'post', parameters: pars, onComplete: showResponse}
    );
        function showResponse(originalRequest)
        {
            if(type==1)
                var ob="city";
            else
                var ob="subcat";
            var tempStr = 'var MyMe = ' + originalRequest.responseText; 
            var i=0;var j=0;
            eval(tempStr);
            for(var s in MyMe)
            {
                ++j;
            }
            $(ob).options.length =j+1;
            for(var k in MyMe)
            {
                var cityId=MyMe[k][0];
                var ciytName=MyMe[k][1];
                i++;
                $(ob).options[i].value = cityId;
                $(ob).options[i].text = ciytName;
                //if(subcat==cityId)
                //$(ob).options[i].selected = true;
            }	
        }
    }
    function getHTML2(v,type)
    {	
        var url = '../ajax_back_end.php';
        var sj = new Date();
        if(type==1)
            var pars = 'shuiji=' + sj+'&prov_id='+v;
        if(type==2)
            var pars = 'shuiji=' + sj+'&catid='+v;
        var myAjax = new Ajax.Request(
        url,
        {method: 'post', parameters: pars, onComplete: showResponse}
    );
        function showResponse(originalRequest)
        {
            if(type==1)
                var ob="city2";
            else
                var ob="subcat";
            var tempStr = 'var MyMe = ' + originalRequest.responseText; 
            var i=0;var j=0;
            eval(tempStr);
            for(var s in MyMe)
            {
                ++j;
            }
            $(ob).options.length =j+1;
            for(var k in MyMe)
            {
                var cityId=MyMe[k][0];
                var ciytName=MyMe[k][1];
                i++;
                $(ob).options[i].value = cityId;
                $(ob).options[i].text = ciytName;
                //if(subcat==cityId)
                //$(ob).options[i].selected = true;
            }	
        }
    }
</script>
<div class="middle-newslist">
    <div class="middle-newslist">
        <div class="middle-newslist-zhaopin">
            <div class="Middle-two-content-left-newlist1">
                <div class="Middle-two-content-Middle-top">
                    <span class="xinpin">企业招聘</span>
                    <span class="fuhao">>></span>
                    <span class="gengduo"><a target="_blank" href="<{$config.weburl}>/?m=job&s=job_list">更多</a></span>																
                </div>
                <div class="Middle-two-content-Middle-top-newlist2">
                    <div class="Middle-two-content-Middle-button-top-company2">
                        <span class="one">公司名称</span>
                        <span class="two">招聘职位</span>
                        <span class="two">工作地点</span>
                        <span class="two">职位月薪</span>
                        <span class="two">发布时间</span>
                    </div>
                    <div class="Middle-two-content-Middle-top-newlist2-zhaopin">
                        <ul>
                            <{foreach from=$rechrlist item=list}>
                            <li><span class="leftzp"><a title="<{$list.company}>" href="<{geturl type='' uid=$list.userid user=$list.user}>" target="_blank"><{$list.company|truncate:15}>...</a></a></span>
                                <span class="right1"><a style="font-size: 12px;font-weight: normal;" href="<{$config.weburl}>/?m=job&s=job_detail&id=<{$list.id}>" target="_blank"><{$list.title}></a></span>
                                <span class="right2"><{$list.province}>-<{$list.city}></span>
                                <span class="right2"><{foreach item=val key=num from=$hrmoney}><{if $num==$list.money}><{$val}><{/if}><{/foreach}></span>
                                <span class="right3">[<{$list.uptime|date_format}>]</span>
                            </li>
                            <{/foreach}>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="Middle-two-content-left-newlist2">
                <div class="Middle-two-content-Middle-top">
                    <span class="xinpin">个人应聘</span>
                    <span class="fuhao">>></span>
                    <span class="gengduo"><a target="_blank"  href="<{$config.weburl}>/?m=job&s=resume_list">更多</a></span>																
                </div>
                <div class="Middle-two-content-Middle-top-newlist2">
                    <div class="Middle-two-content-Middle-button-top-company2">
                        <span class="one">个人姓名</span>
                        <span class="two">应聘职位</span>
                        <span class="two">工作年限</span>
                        <span class="two">期望月薪</span>
                        <span class="two">发布时间</span>
                    </div>
                    <div class="Middle-two-content-Middle-top-newlist2-zhaopin">
                        <ul>
                            <{foreach from=$resume item=list}>
                            <li>
                                <span class="leftzp"><a href="<{$config.weburl}>/?m=job&s=resume_detail&id=<{$list.rid}>"><{$list.uname}></a></span>
                                <span class="right1"><{$list.catname}></span>
                                <span class="right2"><{$list.experience_years}><{$lang.year}></span>
                                <span class="right2"><{foreach item=val key=num from=$hrmoney}><{if $num==$list.money}><{$val}><{/if}><{/foreach}></span>
                                <span class="right3">[<{$list.time|date_format}>]</span>
                            </li>
                            <{/foreach}>
                        </ul>
                    </div>
                </div>

            </div>
        </div>



        <div class="Middle-two-content-right-newlist2">
            <div class="Middle-two-content-right2">
                <div class="Middle-two-content-right-newlist-top">
                    <span class="xinpin">招聘搜索</span>
                    <span class="fuhao">>></span>
                    <span class="gengduo"><a href="index.php?m=news&s=news_list&type=jiaodian">更多</a></span>
                </div>
                <div class="Middle-two-content-right-newlist-zhaopin-search">
                    <form action="<{$config.weburl}>/" method="get">
                        <input type="hidden" name="m" value="<{$smarty.get.m}>" />
                        <input type="hidden" name="s" value="job_list" />
                    <ul>
                        <li>
                            <span style="float:left;margin-top:3px;_margin-top:5px; margin-left:15px;">日期：</span>
                            <span style="float:left;">
                                <select style="width:160px;" name="jobdate" id="jobdate"> 
                                    <{foreach item=list from=$hrdropdate key=num}>
                                    <option value="<{$num}>" <{if $num==$smarty.get.jobdate}>selected<{/if}>><{$list}></option>
                                    <{/foreach}>
                                </select>
                            </span>
                        </li>
                        <li>
                            <span style="float:left;margin-top:3px;_margin-top:5px; margin-left:15px;">性质：</span><{foreach item=list from=$job_type key=num}><input name="pro" type="radio" class="radio" value="<{$num}>"/><{$list}><{/foreach}>
                                
                        </li>
                        <li>
                            <span style="float:left;margin-top:3px;_margin-top:5px; margin-left:15px;">职位：</span>
                            <span style="float:left;">
                                <select style="width:160px;" name="sid">
                                    <option value="">选择职位</option>
                                    <{foreach from=$hrcat item=list}>
                                    <option value="<{$list.id}>"><{$list.catname}></option>
                                    <{/foreach}>
                                </select>
                            </span>
                        </li>
                        <li>
                            <span style="float:left;margin-top:3px;_margin-top:5px; margin-left:15px;">地区：</span>
                            <span style="float:left;">
                                <select name="province" id="province" onChange="getHTML(this.value,1)" style="width:100px;">
                                    <option value="">省份</option>
                                    <{$province}>
                                </select>
                            </span>
                            <span style="float:left;margin-top:3px;_margin-top:5px; margin-left:15px;">城市：</span>
                            <span style="float:left;">
                                <select name="city" id="city" style="width: 100px;">
                                    <option value="">城市</option>
                                </select>
                            </span>
                        </li>
                        <li>
                            <span style="float:left;margin-top:3px;_margin-top:5px; margin-left:15px;">关键字：</span>
                            <span style="float:left;"><input type="text" name="keyword" style="width:160px;"/></span>
                                
                        </li>
                        <li>  
                            <span style="float:left; margin-left:20px;">
                                <input type="submit" value="<{$lang.search}>职位" />
                            </span>
                        </li>
                    </ul>
                        </form>
                </div>
                <div class="Middle-two-content-right-newlist-zhaopin-search2">
                    <form action="<{$config.weburl}>/" method="get">
                 <input type="hidden" name="m" value="<{$smarty.get.m}>" />
                 <input type="hidden" name="s" value="resume_list" />
                    <ul>
                        <li>
                            <span style="float:left;margin-top:3px;_margin-top:5px; margin-left:15px;">日期：</span>
                            <span style="float:left;">
                                <select style="width:160px;" name="jobdate" id="jobdate"> 
                                    <{foreach item=list from=$hrdropdate key=num}>
                                    <option value="<{$num}>" <{if $num==$smarty.get.jobdate}>selected<{/if}>><{$list}></option>
                                    <{/foreach}>
                                </select>
                            </span>
                        </li>
                        <li>
                            <span style="float:left;margin-top:3px;_margin-top:5px; margin-left:15px;">性质：</span>
                            <{foreach item=list from=$job_type key=num}><input type="radio" class="radio" value="<{$num}>" name="pro"/><{$list}><{/foreach}>
                                
                        </li>
                        <li>
                            <span style="float:left;margin-top:3px;_margin-top:5px; margin-left:15px;">职位：</span>
                            <span style="float:left;">
                                <select name="sid" style="width:160px;">
                                    <option value="">选择职位</option>
                                    <{foreach from=$hrcat item=list}>
                                    <option value="<{$list.id}>"><{$list.catname}></option>
                                    <{/foreach}>
                                </select>
                            </span>
                        </li>
                        <li>
                            <span style="float:left;margin-top:3px;_margin-top:5px; margin-left:15px;">地区：</span>
                            <span style="float:left;">
                                <select name="province" id="province" onChange="getHTML2(this.value,1)" style="width:100px;">
                                    <option value="">省份</option>
                                    <{$province}>
                                </select>
                            </span>
                            <span style="float:left;margin-top:3px;_margin-top:5px; margin-left:15px;">城市：</span>
                            <span style="float:left;">
                                <select name="city" id="city2" style="width: 100px;">
                                    <option value="">城市</option>
                                </select>
                            </span>
                        </li>
                        <li>
                            <span style="float:left;margin-top:3px;_margin-top:5px; margin-left:15px;">性别：</span>
                            <span style="float:left;margin-top:4px;_margin-top:0px;"><input type="radio" name="sex" class="radio" value="0" /></span>
                            <span style="float:left;margin-left:5px;margin-top:3px;_margin-top:5px;">男</span>
                            <span style="float:left;margin-top:4px;_margin-top:0px; margin-left:25px;"><input type="radio" name="sex" class="radio" value="1" /></span>
                            <span style="float:left;margin-left:5px;margin-top:3px;_margin-top:5px;">女</span>
                        </li>
                        <li>  
                            <span style="float:left; margin-left:20px;"><input type="submit" value="<{$lang.search}>人才" /></span>
                        </li>
                    </ul>
                 </form>
                </div>
            </div>
            <div class="Middle-two-content-right-newlist">
                <div class="Middle-two-content-right-newlist-top">
                    <span class="xinpin">焦点新闻</span>
                    <span class="fuhao">>></span>
                    <span class="gengduo"><a href="index.php?m=news&s=news_list&type=jiaodian">更多</a></span>
                </div>
                <div class="xhdongtai">
                    <ul>
                        <{insert name="getNews" limit=9 leng=34 istop=1}>
                    </ul>
                </div>
            </div>
        </div>